﻿
namespace XRM.ActiveDirectoryService
{
    public class ADUser
    {
        public string AccountName { get; set; }
        public string LastName { get; set; }
        public string FirstName { get; set; }
        public string MiddleName { get; set; }
        public string Post { get; set; }
        public string Department { get; set; }
        public string FullName
        {
            get
            {
                var fullName = string.Format( "{0} {1}", LastName, FirstName );
                return MiddleName != null ? string.Format( "{0} {1}", fullName, MiddleName ) : fullName;
            }
        }
    }
}
